<?php

namespace app\model\exchange;

use hunma\basic\BaseModel;

class ExchangeRateModel extends BaseModel
{
    protected $table = 'exchange_rates';
    protected $primaryKey = 'id';

    // 时间戳字段
    public $timestamps = true;
    const CREATED_AT = 'create_time';
    const UPDATED_AT = 'update_time';
    const DELETED_AT = 'delete_time';

    protected $dates = ['delete_time'];

    protected $fillable = [
        'currency_code', 'rate_to_cny', 'symbol', 'currency_name',
        'create_time', 'update_time', 'delete_time'
    ];
}